﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JmShared
{
    public class ContactEmoticon : IEquatable<ContactEmoticon>
    {
        public string Keyword { get; set; }
        public string Hash { get; set; }
        public string Extension { get; set; }
        public int Index { get; set; }


        public override int GetHashCode()
        {
            return (this.Keyword+this.Hash).GetHashCode();
        }
        public override bool Equals(object obj)
        {
            return Equals(obj as ContactEmoticon);
        }
        public bool Equals(ContactEmoticon other)
        {
            if (other == null)
                return false;
            return this.Hash==other.Hash && this.Keyword==other.Keyword;
        }
    }
}
